<?php

	class Serializer {
	
		function __construct() {
		
		}
		
		function serialize($d, $l) {
			return $d.'_'.$l;
		}
		
		function getDistance($str) {
			$tokens = explode('_', $str);
			return $tokens[0];
		}
		
		function getLabel($str) {
			$tokens = explode('_', $str);
			return $tokens[1];
		}
	}

?>